	<table class="tblist2">
		<tr class="head">
			<th></th>
			<th>Name</th>
			<th>Address1</th>
			<th>Address2</th>
			<th>Address3</th>
			<th>Address4</th>
			<th>City/Province</th>
			<th>Country</th>
			<th>Postcode/Zipcode</th>			
			<th>Tel</th>
			<th>Tel</th>
			<th>Fax</th>
			<th>Email</th>
			<th>Register Date</th>
		</tr>
		<?php 
		  $rowStyle = '';
		  $page = (isset($_GET['page']))? $_GET['page']:1;
		  $i=(isset($_GET['page']))? (($_GET['page'] -1)* 10)+1:1;
		  foreach($result as $row):
		?>  
		<tr  <? if($rowStyle =='')$rowStyle = 'class="odd"';else $rowStyle = "";echo $rowStyle;?> >
		  <td><?=$i;?></td>
		  <td >
		  	<?=$row['name'];?> 
		  </td>
		  <? for($a=1;$a<=4;$a++){?>		  
		  <td ><?=$row['address'.$a];?></td>
		  <? } ?>
		  <td>
		  	<? if($row['province_id']>0){
		  		echo $row['province_name_th'];
		  	}else{ echo $row['city'];}
			?>
		  </td>
		  <td>
		  	<? echo $row['country_name'];?>
		  </td>
		  <td><?=$row['postcode'];?></td>
		  <td>
		  	<? echo GetMemberPhoneNumber($row['id'],'tel1');?>
		  </td>
		  <td>
		  	<? echo GetMemberPhoneNumber($row['id'],'tel2');?>
		  </td>
		  <td>
		  	<? echo GetMemberPhoneNumber($row['id'],'fax');?>
		  </td>
		  <td ><?=$row['email'];?></td>
		  <td ><?=$row['registerdate'];?></td>		  
	   </tr>
		<? 
				$i++;
		  		endforeach; 
?>		
	</table>
